import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'home_logic.dart';
import 'home_state.dart';

class HomePage extends StatelessWidget {
  HomePage({Key? key}) : super(key: key);
  final HomeLogic logic = Get.put(HomeLogic());
  final HomeState state = Get.find<HomeLogic>().state;

  @override
  Widget build(BuildContext context) {
    return Container(
        child:GetBuilder<HomeLogic>(builder: (_){
          return Scaffold(
            body: Center(
                child: Container(
                  alignment: Alignment.center,
                  child: Text('首页',style: TextStyle(fontSize: 30,color: Colors.blue)),
                )
            ),
            backgroundColor: Colors.white,
          );
        },)
    );
  }
}
